﻿module Sustainalytics.Common {

    // Paging options used for paging items.
    export class PagingOptions {

        // Starting index
        public pageIndex: number;

        // Page size
        public pageSize: number;

        // Ctor
        public constructor(pageIndex: number, pageSize: number) {
            this.pageIndex = pageIndex;
            this.pageSize = pageSize;
        }

        // Clone paging options
        public Clone(): PagingOptions {
            var pagingOptions: PagingOptions = new PagingOptions(this.pageIndex, this.pageSize);
            return pagingOptions;
        }
    }

}